Skip to content

feat(network): support --aux-address on network create#5041

Draft
mayur-tolexo wants to merge 1 commit into
containerd:mainfrom
mayur-tolexo:feat/network-aux-address
Draft

feat(network): support --aux-address on network create#5041
mayur-tolexo wants to merge 1 commit into
containerd:mainfrom
mayur-tolexo:feat/network-aux-address

Conversation

@mayur-tolexo

@mayur-tolexo mayur-tolexo commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Part of #5012.
Docker's network create reserves auxiliary addresses so IPAM never hands them out to containers. nerdctl had no equivalent.

host-local has no exclude list, but it allocates across every range in a set, so each reserved IP is carved out by splitting the subnet range around it. The reserved name=IP pairs are matched to the subnet that contains them (so dual-stack picks the right family), rejected when they hit the network or gateway address or fall outside every subnet, and recorded so network inspect reports AuxiliaryAddresses the same way Docker does.

Docker's network create reserves auxiliary addresses so IPAM never hands
them out to containers. nerdctl had no equivalent.

host-local has no exclude list, but it allocates across every range in a
set, so each reserved IP is carved out by splitting the subnet range around
it. The reserved name=IP pairs are matched to the subnet that contains them
(so dual-stack picks the right family), rejected when they hit the network or
gateway address or fall outside every subnet, and recorded so network inspect
reports AuxiliaryAddresses the same way Docker does.

Signed-off-by: Mayur Das <mayur.das@neevcloud.com>
@mayur-tolexo mayur-tolexo marked this pull request as draft July 4, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant